package com.yami.shop.security.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yami.shop.security.model.AppConnect;
import org.apache.ibatis.annotations.Param;

public interface AppConnectMapper extends BaseMapper<AppConnect> {

    AppConnect getByBizUserId(@Param("bizUserId") String bizUserId, @Param("appId") Integer appId);

    AppConnect getByUserId(@Param("userId") String userId, @Param("appId") Integer appId);

    String getUserIdByUnionId(@Param("bizUnionId") String bizUnionId);
}
